package evolution.operation.migration;

import java.beans.PropertyChangeSupport;

public abstract class AbstractMigrationStrategy implements MigrationStrategy {

	protected int migrationSize = 2;
	private PropertyChangeSupport changeSupport = new PropertyChangeSupport(
			this);

	@Override
	public int getMigrationSize() {
		return migrationSize;
	}

	@Override
	public void setMigrationSize(int migrationSize) {
		int oldValue = this.migrationSize;
		this.migrationSize = migrationSize;
		changeSupport.firePropertyChange("migrationSize", oldValue,
				migrationSize);
	}
}
